package com.dotflat.xj.po;

import com.dotflat.rest.PO.AreableObjectBasePO;
import com.dotflat.rest.utils.LikeableField;
import com.dotflat.rest.utils.UniqueField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 巡检对象对象
 * 
 * @author #
 * @date 2021-11-25
 */
@Data
@ApiModel("巡检对象")
@EqualsAndHashCode(callSuper=true)
public class TargetPO extends AreableObjectBasePO
{


    /** 二维码url */
    @ApiModelProperty(value = "二维码url")
    private String url;

    /** 类别名称 */
    @ApiModelProperty(value = "类别名称：输入值")
    @LikeableField
    private String typeName;

    /** 检查目标类别 */
    @ApiModelProperty(value = "对象类别：xj_target_type" )
    private String targetType;

    /** 结论类别 */
    @ApiModelProperty(value = "结论类别：xj_conclusion_type" )
    private String conclusionType;

    /** 检查分类 */
    @ApiModelProperty(value = "检查分类：xj_sort" )
    private String sort;

    /** 记录类型 */
    @ApiModelProperty(value = "记录方式：xj_record_type" )
    private String recordType;

    /** 检查周期 */
    @ApiModelProperty(value = "检查周期：xj_cycle")
    private String cycle;

    /** 状态 */
    @ApiModelProperty(value = "状态0正常，1停用")
    private String status = "0";

    /** 是否部分提交 */
    @ApiModelProperty(value = "是否部分提交0全部，1部分")
    private String whole = "0";

    /** 备注 */
    @ApiModelProperty(value = "备注")
    private String remark;

    /** 总分数 */
    @ApiModelProperty(value = "总分数")
    private Integer projectCount = 0;

    /** 总检查项 */
    @ApiModelProperty(value = "总检查项")
    private Integer projectNumber = 0;

    /** 所属 */
    @ApiModelProperty(value = "所属机构")
    private String belonging;

    //,value = "集团ID,非传
    @ApiModelProperty(hidden=true)
    @JsonIgnore
    @UniqueField
    private String groupId;

    @ApiModelProperty(value = "是否集团共用：1共用 0默认")
    private Integer isGroup = 2;

}
